package com.gaofei.controller;

import com.gaofei.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : gaofee
 * @date : 15:09 2020/12/2
 * @码云地址 : https://gitee.com/itgaofee
 */
@RestController
public class NacosConsumerFeignController {

    @Autowired
    private FeignService feignService;

    @GetMapping(value = "/test/{message}")
    public String test(@PathVariable String message) {
        return feignService.test(message+"Feign");
    }

}
